<template>
  <div class="search-preview-wrapper">
    <div class="search-box">
      <i class="el-icon-search"></i>
      <span>{{ config.placeholder || '请输入关键词搜索' }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "SearchPreview",
  props: {
    config: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

<style scoped>
.search-preview-wrapper {
  padding: 10px 15px;
  background-color: #fff;
}
.search-box {
  background-color: #f7f8fa;
  border-radius: 15px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #999;
}
.search-box i {
  margin-right: 5px;
}
</style>
